from pydantic import BaseModel
from datetime import datetime

class ReportData(BaseModel):
    date: datetime
    flow_id: str
    game_id: int
    report_timestamp: int
    ugid: int
    user_id: int
    vmid: int


if __name__ == '__main__':
    # 示例数据
    data = {
        'date': '2025-02-11 11:01:00.289 Z',
        'flow_id': '4103_3v6sda5p2lrf',
        'game_id': 1682,
        'report_timestamp': 1739242771000,
        'ugid': 1682,
        'user_id': 551061990,
        'vmid': 32688
    }

    # 创建模型实例
    report = ReportData(**data)
    print(report)